package com.ryskoo.common.constant;

import java.util.HashMap;
import java.util.Map;

public class CmsParamConstant {

	/** 个人QQ */
	public static final String PERSONALQQ = "1";
	/** 企业QQ */
	public static final String COMPANYQQ = "2";
	/** 旺旺 */
	public static final String ALITM = "3";
	/** 微信 */
	public static final String WECHAT = "4";
	/** 电话 */
	public static final String PHONE = "5";
	/** 客服类型MAP */
	public static Map<String, String> typeMap = new HashMap<String, String>();


	/**
	 * 公告管理 - 上下架状态 MAP
	 */
	private static Map<String,String> noticeStateMap = new HashMap<String,String>();

	/** 公告状态 : 0 下架   1 上架 */
	public static final String NOTICE_STATE_DOWN = "0";
	public static final String NOTICE_STATE_UP = "1";

	/**
	 * 公告管理 - 客户接收类型 MAP
	 */
	private static Map<String,String> noticeCustomerMap = new HashMap<String,String>();

	/** 客户类型 : 0 全部客户   1 部分客户 */
	public static final String NOTICE_CUSTOMER_ALL = "0";
	public static final String NOTICE_CUSTOMER_HALF = "1";

	/**
	 * 广告管理 - 发布终端类型 MAP
	 */
	private static Map<String,String> advertReleaseMap = new HashMap<String,String>();

	/** 终端类型 : 0 移动端   1 PC端 */
	public static final String ADVERT_RELEASE_MOVE = "0";
	public static final String ADVERT_RELEASE_PC = "1";

	static {
		typeMap.put(PERSONALQQ, "个人QQ");
		typeMap.put(COMPANYQQ, "企业QQ");
		typeMap.put(ALITM, "旺旺");
		typeMap.put(WECHAT, "微信");
		typeMap.put(PHONE, "电话");

		noticeStateMap.put(NOTICE_STATE_DOWN,"下架");
		noticeStateMap.put(NOTICE_STATE_UP,"上架");

		noticeCustomerMap.put(NOTICE_CUSTOMER_ALL,"全部客户");
		noticeCustomerMap.put(NOTICE_CUSTOMER_HALF,"部分客户");

		advertReleaseMap.put(ADVERT_RELEASE_MOVE,"移动端");
		advertReleaseMap.put(ADVERT_RELEASE_PC,"PC端");
	}

	public static Map<String, String> getTypeMap(){
		return 	typeMap;
	}

	public static String getTypeNameByKey(String key){
		return typeMap.get(key);
	}

	public static Map<String, String> getNoticeStateMap(){
		return 	noticeStateMap;
	}

	public static String getNoticeStateNameByKey(String key){
		return noticeStateMap.get(key);
	}

	public static Map<String, String> getNoticeCustomerMap(){
		return 	noticeCustomerMap;
	}

	public static String getNoticeCustomerNameByKey(String key){
		return noticeCustomerMap.get(key);
	}

	public static Map<String, String> getAdvertReleaseMap(){
		return 	advertReleaseMap;
	}

	public static String getAdvertReleaseNameByKey(String key){
		return advertReleaseMap.get(key);
	}
}
